package com.googlecode.sere.core

import com.googlecode.sere.matcher.{UnknownResource, GenericUrlRegistry}
import com.googlecode.sere.http.NotFound

object UrlRegistry extends GenericUrlRegistry[ResourceType] {
	val nullValue = UnknownResource
}

object PostUrlRegistry extends GenericUrlRegistry[(ResourceType, ResourceType, ResourceType.PostAction)] {

  def notFound(x: => AnyRef) = {
    throw new NotFound
    null
  }

  val nullValue = (null, null, notFound _)
}